package com.hundsun.aitest.model.ai;

import java.util.List;


public class AutoCase {
    private String interfaceName;
    private List<TestPoint> testPoints;

    // caseType: 1-auto, 2-check,用例类型，通用自动化用例或者勾稽用例
    private String caseType;

    public String getCaseType() {
        return caseType;
    }

    public void setCaseType(String caseType) {
        this.caseType = caseType;
    }

    // Getter and Setter methods
    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public List<TestPoint> getTestPoints() {
        return testPoints;
    }

    public void setTestPoints(List<TestPoint> testPoints) {
        this.testPoints = testPoints;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        sb.append("TestCase{");
        sb.append("interfaceName=").append(interfaceName != null ? "\"" + interfaceName + "\"" : "null");

        if (testPoints != null) {
            sb.append(", testPoints=[");
            for (int i = 0; i < testPoints.size(); i++) {
                TestPoint testPoint = testPoints.get(i);
                sb.append(testPoint);
                if (i < testPoints.size() - 1) {
                    sb.append(", ");
                }
            }
            sb.append("]");
        } else {
            sb.append(", testPoints=null");
        }

        sb.append('}');
        return sb.toString();
    }
}
